package com.fayou.cloud.cloudconsumeropenfeignorder8082;

import com.fayou.cloud.loadbalance.LoadBalanceConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;
import org.springframework.cloud.netflix.ribbon.RibbonClients;
import org.springframework.cloud.openfeign.EnableFeignClients;

@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
@EnableFeignClients
@EnableEurekaClient
@EnableCircuitBreaker
@RibbonClient(name="CLOUD-PAYMENT-SERVICE",configuration = LoadBalanceConfig.class)
public class CloudConsumerOpenfeignOrder8082Application {

    public static void main(String[] args) {
        SpringApplication.run(CloudConsumerOpenfeignOrder8082Application.class, args);
    }

}
